package com.hzzy.IDao;

import com.hzzy.bean.HzTeacher;
import com.hzzy.bean.HzTeacherExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface HzTeacherMapper {
    int countByExample(HzTeacherExample example);

    int deleteByExample(HzTeacherExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(HzTeacher record);
    
    int insertTeacher(HzTeacher record);

    int insertSelective(HzTeacher record);

    List<HzTeacher> selectByExample(HzTeacherExample example);
    
    List<HzTeacher> selectHzTeacherInfo(Map<String,String> example);
    
    HzTeacher selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") HzTeacher record, @Param("example") HzTeacherExample example);

    int updateByExample(@Param("record") HzTeacher record, @Param("example") HzTeacherExample example);

    int updateByPrimaryKeySelective(HzTeacher record);

    int updateByPrimaryKey(HzTeacher record);
    
    /*自定义*/
    /**
     * 根据当前班级id，获取所有参与班级教课的老师
     * @return
     */
    List<HzTeacher> groupByCurrentClassId(Integer classId);
    
    /**
     * 根据条件查找数据
     * @param conditions
     * @return
     */
    List<HzTeacher> selectByConditions(Map<String, Object> conditions);
}